package net.jwtools.tmt.domain;

public enum Status {
	ACTIVE(1), INACTIVE(2);

	private int value;

	Status(int value) {
		this.value = value;
	}

	// the identifierMethod
	public int toInt() {
		return value;
	}

	// the valueOfMethod
	public static Status fromInt(int value) {
		switch (value) {
		case 1:
			return ACTIVE;
		case 2:
			return INACTIVE;
		default:
			return null;
		}
	}

}
